<link rel="stylesheet" href="./demo.css">


<div class="enlarge1">
    <!-- 盒模型叫img -->
  <div class="img">
      <!-- 里面放遮罩框 -->
      <div class="mask"></div>
    </div>
    <!-- 盒模型enlarge 显示放大镜图片 -->
    <div class="enlarge"></div>
</div>


<br>
<hr>
<br>




<script src="./demo.js"></script>
<script>
let enlarge1 = new Enlarge('.enlarge1')
// let enlarge2 = new Enlarge('.enlarge2') 
</script>